// Vue的插件机制Vue.use(plugin)
// 1.plugin是对象或函数
//   如果是一个对象,对象要提供一个install方法
//   如果是函数,这个函数就作为install方法

// 2.install会自动的执行 install方法中默认有参数Vue

import PageTools from './PageTools'
import UploadExcel from './UploadExcel'
import UploadImage from './UploadImage'
import ScreenFull from './ScreenFull'
import ThemePicker from './ThemePicker'
import Lang from './Lang'
import TagsView from './TagsView'
export default {
  install(Vue) {
    Vue.component('PageTools', PageTools)
    Vue.component('UploadExcel', UploadExcel)
    Vue.component('UploadImage', UploadImage)
    Vue.component('ScreenFull', ScreenFull)
    Vue.component('ThemePicker', ThemePicker) // 注册全屏组件
    Vue.component('Lang', Lang)
    Vue.component('TagsView', TagsView)
  }
}

